x86emul: simplify IRET logic
authorJan Beulich <jbeulich@suse.com>
Fri, 26 Feb 2016 11:15:09 +0000 (12:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Feb 2016 11:15:09 +0000 (12:15 +0100)
commit158ba53323cc0fcdb833798139a2f20a15dad5e2
tree51cfe61c279fe071b5410c7775c1d802ca1e7593
parent81d3a0b26c1672c60b2a54dd8780e6f6472d2328
x86emul: simplify IRET logic

Since we only handle real mode, we need to consider neither non-ring0
nor IOPL. Also for POPF the mode_iopl() check can really be inside the
not-ring-0 body.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c